package com.gxy.learn.backup.shiroauth.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxy.learn.backup.shiroauth.entity.SysRole;
import com.gxy.learn.backup.shiroauth.mapper.SysRoleMapper;
import com.gxy.learn.backup.shiroauth.service.SysRoleService;
import com.gxy.learn.backup.shiroauth.vo.SysUserRoleVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * author: Gao xueyong
 * Create at: 2022/1/4 下午11:53
 */
@Slf4j
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> implements SysRoleService {

    @Override
    public List<SysUserRoleVO> getSysRolesByAccount(String account) {
        return baseMapper.getSysRolesByAccount(account);
    }
}
